using AutoMapper;
using Core.Db.Dtos;
using Core.Db.Models;

namespace Core.Db.Profiles;

public class OrderProfile : Profile
{
    public OrderProfile()
    {
        CreateMap<Order, OrderDto>()
            .ForMember(desc => desc.State, opt => { opt.MapFrom(src => src.State.ToString()); });
    }
}